<?php 
class UsersModel extends Model
{
	protected $_table = 'users';
	protected $_idField = 'user_id';
	public $properties = array('user_loginname', 'user_password', 'group_id', 'user_nicename', 
				'user_email', 'dt_registered', 'ip_last_login', 'dt_last_login', 'user_status');
	
	public function preInsert()
	{
		$this->ip_last_login = Helper::getIp();
		$this->dt_last_login = $this->dt_registered = date('Y-m-d H:i:s');
	}
}
